2.2.3 事件(event)
事件信息
字段定义
| 字段 | 类型 | 说明 |
|---|---|---|
| id | string | 日志ID,日志唯一ID |
| mainType | string | 操作类型 |
| subType | string | 操作子类型 |
| timestamp | number | 时间,13位时间戳(无时区概念),精确到毫秒 |
| result | string | 结果,可选值:SUCCESS(成功)、FAILED(失败)、-(无) |
| reason | string | 原因 |
| action | string | 处置动作,可选值:DENY(已拦截)、ALLOW(已通过)、-(无) |
| startTime | number | 事件开始时间,可空,13位时间戳(无时区概念),精确到毫秒 |
| endTime | number | 事件结束时间,可空,13位时间戳(无时区概念),精确到毫秒 |
| _vSchema | string | schema,用于动态控制控制台展示某些字段,可选值:management(显示target字段)、apiGuard(显示api字段)、risk(显示security字段)、acl(显示acl字段)、proxy(显示target、network字段) |
| details | string | 日志描述,可空,一般为JSON,为日志的附加信息 |
JSON格式
"event": {
"id": "67f48a04-7961-44af-a693-1833decff4f0",
"mainType": "user",
"subType": "user.login",
"timestamp": 1689606221501,
"result": "SUCCESS",
"reason": "",
"action": "",
"startTime": 0,
"endTime": 0,
"_vSchema": "",
"details": ""
}